<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/17 0017
 * Time: 16:31
 */
namespace app\api\model;

use think\Model;

class Pay extends Model
{
    protected $dateFormat = 'Y年m月d日 H:i:s';
    protected $type = [
        'add_time'    =>  'timestamp',
    ];
    public function users()
    {
        return $this->belongsTo('users','user_id','user_id');
    }
}